/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Creational.Factory;

/**
 *
 * @author usuario
 */
public class TraducirIngles extends Traductor {
 String x;
    public TraducirIngles(){
       super();
    }
 
    @Override
    public String traducirNumero(int numero) {
        switch(numero){
       	   case 1: x="one"; break;
       	   case 2: x= "two";break;
               case 3: x="three"; break;
       	   case 4: x= "four";break;
               case 5: x="five"; break;
        }
        return x;
    }
 
}
